package com.firebird.app.kotlin.stock.ui.detailsallocatin.contract

import com.firebird.app.kotlin.stock.base.BaseView
import com.firebird.app.kotlin.stock.data.SimpleBean
import retrofit2.Call


interface DetailsAllocationContract {
    interface Model {
        fun getAddCashData(bpOrderId: Int, money: String?): Call<SimpleBean?>?
        fun getOverDealData(bpOrderId: Int): Call<SimpleBean?>?
    }

    interface View : BaseView {
        override fun showLoading()
        override fun hideLoading()
        override fun onError(throwable: Throwable?)
        fun onSuccessAddCash(bean: SimpleBean?)
        fun onSuccessOver(bean: SimpleBean?)
    }

    interface Presenter {
        fun getAddCashData(bpOrderId: Int, money: String?)
        fun getOverDealData(bpOrderId: Int)
    }
}